package com.github.m6d21.sso.core.exception;

/**
 *<p>
 *BusinessException
 *</p>
 *
 * @author liuyang
 * @date 2018-12-07 Fri 13:28:25
 * @since 1.0.0
 */
public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = 445355354753260911L;
    private Integer code=500;

    public BusinessException(String msg) {
        super(msg);
    }

    public BusinessException(Integer code, String msg) {
        super(msg);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }
}
